package com.piece.core.jpa.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import java.util.List;

@Data
@Primary
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "spring.jpa.persistence")
public class PersistenceProperties {

    /**
     * 持久类包目录
     */
    private List<String> basePackage;

    /**
     * 事物切面表达式
     */
    private String aopPointcutExpression;
}
